﻿<%@ Page Language="C#" MasterPageFile="~/Template/Master.master" AutoEventWireup="true" CodeFile="ViewFriend.aspx.cs" Inherits="ViewFriend" Title="View Friend" %>
   
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="rightside1">
            <div class="barTitle">
        Friend List
    </div>
         <div class="barContentright">  
            <table border="0" cellpadding="2" cellspacing="0" width="100%"  
                 style="height: 350px">
                <tr>
                        <td>
                            <asp:DataList ID="Datalist2" runat="server" RepeatColumns="2"
                            DataKeyField="UserID">
                               
                                <ItemTemplate>
                                    <table cellpadding="0" cellspacing="0" border="0" style="height:100px"  onmouseover="this.className='trover'" onmouseout="this.className='tr'"  >
                                                    <tr>
                                                        <td style="text-align:center; height:120px"  >
                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"DetailFriend.aspx?dtpr="+ Eval("UserID")%>' >
                                                                       <asp:Image id="d" runat="server" ImageUrl='<%#"~/images/"+Eval("U_image") %>' Width="120px" Height="120px"/>
                                                        </asp:HyperLink>
                                                        </td>
                                                        
                                                        <td>
                                                            <table cellpadding="3" cellspacing="0" border="0" width="100%" style="border-left:solid 1px gray;">
                                                                            <tr>                            
                                                                                <td style="border-bottom:dotted 1px gray"><asp:Label ID="lblten" runat="server" Text='<% #Eval("U_fullname") %>'></asp:Label>&nbsp</td>
                                                                            </tr>
                                                                            <tr>                           
                                                                                <td style="border-bottom:dotted 1px gray"><asp:Label ID="Label2" runat="server" Text='<% #Eval("U_address")%>' ></asp:Label>&nbsp</td>
                                                                            </tr>                                                                                                                                                                     
                                                              </table>
                                                        </td>
                                                    </tr>
                                            </table>                                            
                                </ItemTemplate> 
                               <ItemStyle ForeColor="White" Font-Size="14" BorderStyle="Dotted" Width="10%"/>                                   
                            </asp:DataList>
                              <table cellpadding="0" border="0">
                        <tr>
                            <td align="right" class="style1">
                                <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" 
                                    OnClick="lbtnFirst_Click" style="text-align: center">First</asp:LinkButton>
                                &nbsp;</td>
                            <td align="right" class="style1">
                                <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" 
                                    OnClick="lbtnPrevious_Click" style="text-align: center">Previous</asp:LinkButton>&nbsp;&nbsp;</td>
                            <td align="center" valign="middle" class="style1">
                                <asp:DataList ID="dlPaging" runat="server" RepeatDirection="Horizontal" OnItemCommand="dlPaging_ItemCommand"
                                    OnItemDataBound="dlPaging_ItemDataBound" CellPadding="4" 
                                    ForeColor="#333333">
                                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                    <AlternatingItemStyle BackColor="White" />
                                    <ItemStyle BackColor="#E3EAEB" />
                                    <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                                            CommandName="Paging" Text='<%# Eval("PageText") %>'></asp:LinkButton>&nbsp;
                                    </ItemTemplate>
                                </asp:DataList>
                            </td>
                            <td align="left" class="style1">
                                &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false"
                                    OnClick="lbtnNext_Click" style="text-align: center">Next</asp:LinkButton></td>
                            <td align="left" class="style1">
                                &nbsp;
                                <asp:LinkButton ID="lbtnLast" runat="server" CausesValidation="false" 
                                    OnClick="lbtnLast_Click" style="text-align: center">Last</asp:LinkButton></td>
                        </tr>
                        <tr>
                            <td colspan="5" align="center" style="height: 30px" valign="middle">
                                <asp:Label ID="lblPageInfo" runat="server"></asp:Label></td>
                        </tr>
                    </table>
                           
                       </td>
                       </tr>
                       </table>
                          
                   </div>
    </div>    
</asp:Content>
